﻿using System;
using System.Runtime.Serialization;

namespace SlamDunk.MES.IAppService.DTOs.Inputs
{
    /// <summary>
    /// 工单参数要求参数模型
    /// </summary>
    [DataContract]
    public struct WorkOrderParameterAskParam
    {
        /// <summary>
        /// 参数编号
        /// </summary>
        [DataMember]
        public string parameterNo;

        /// <summary>
        /// 参数名称
        /// </summary>
        [DataMember]
        public string parameterName;

        /// <summary>
        /// 对应变量编号
        /// </summary>
        [DataMember]
        public string relatedVariableNo;

        /// <summary>
        /// 标准值
        /// </summary>
        [DataMember]
        public decimal standardValue;

        /// <summary>
        /// 最大值
        /// </summary>
        [DataMember]
        public decimal? maxValue;

        /// <summary>
        /// 最小值
        /// </summary>
        [DataMember]
        public decimal? minValue;

        /// <summary>
        /// 值单位编号
        /// </summary>
        [DataMember]
        public string valueUnitNo;

        /// <summary>
        /// 工厂模型Id
        /// </summary>
        [DataMember]
        public Guid? facilityId;

        /// <summary>
        /// 排序
        /// </summary>
        [DataMember]
        public int sort;

        /// <summary>
        /// 描述
        /// </summary>
        [DataMember]
        public string description;
    }
}
